package cn.jdy.lhkgaj.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.springframework.format.annotation.DateTimeFormat;

import cn.jdy.common.bo.BaseEntry;

/**
 * 新闻实体类 
 * @author yym
 */
@Entity
public class LhkgajWorks extends BaseEntry implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)//根据数据库自动适配 mysql默认自增
	private Long id;        //主键
	private String title;      //标题
	private String author;      //作者
	@Column(columnDefinition = "longtext")
	private String context;      //内容
	private String summary;      //摘要
	private String keyword;      //关键词
	private String originAddress;  //来源
	@Column(updatable = false) // 第一次增加之后不可修改
	private String userid;      //发布人
	private String username;    //发布人
	private Integer readTimes;    //阅读次数
	private Integer goodtimes;    //点蛅次数
	private String imgUrl;      //封面图片地址
	private String status;      //状态 0：无效，1：有效
//	5：主动公开，6：申请公开，7：不予公开
	//较新闻实体，新增两个状态字段
	private String signStatus;  //状态 0：未签收，1：已签收
	private String teams;      //支队数目1,2,3,4,5;
	//需要签收单位-每个单元对应一个签收单位，有46+新增3个+zhddk换成zhzx=49+暂不用jymsk；
	private String[] associations=new String[49];//需要签收单位-每个单元对应一个签收单位
	//每个单元有值即为需要签收，无值则不需要签收
	private String[] assocGrops=new String[4];//4个签收单位群
	private String falseCreateTime;//假时间-可修改：文件印发时间
	
	private String depars;//将部门由数组转换成字符串
	private String transforms;//是否写入Associations和RemoteAssociations,已写设置为1，
//文件模板
	private String fileTypes;//文件头类型，目前六种类型
	private String issuings;//签发单位：襄公办字，襄公办发，襄公党委，襄公发，襄公通
	private String iYears;//文件年份-换成文件头
	private String iNumbers;//文件编号-去掉
	private String iSigner;//文件签发人
	private String iAngency;//文件印发单位-去掉，统一襄阳市公安局指挥中心
	//日期統一格式：XXXX-XX-XX，如2016-05-31
	private String iSignTime;//文件发布时间-不可修改时间
	private String iSignedTime;//襄公发命令签名日期-去掉
	//新增URL字段
	private String isURL;//如果URL为空，跳转show-;如果不为空，跳转对应URL
	@Column(columnDefinition="varchar(255) default '0'")
	private String topTime;// 顶置日期
	
//	@Column(nullable = false)
//	private Long columnId;
//
//	@ManyToOne
//	@JoinColumn(name = "columnId", insertable = false, updatable = false)
//	private ConfValue cv;

	private String isNews;// 是否加入new图标
	
	private String isSignNews; //文章是否需要签收 0-不需要签收，1-需要签收
	private String signDepartment; //东津公安分局签收单位（东津公安局签收字段）
	private String isSigned;//签发人
	private String isChecked;//核稿人
	private String isHeld;//承办人
	private String value1;
	private String value2;
	private String value3;
	private String value4;
	private String value5;
	private String value6;
	private String value7;
	private String value8;
	private String value9;
	private String value10;
	
	
	public String getValue1() {
		return value1;
	}

	public void setValue1(String value1) {
		this.value1 = value1;
	}

	public String getValue2() {
		return value2;
	}

	public void setValue2(String value2) {
		this.value2 = value2;
	}

	public String getValue3() {
		return value3;
	}

	public void setValue3(String value3) {
		this.value3 = value3;
	}

	public String getValue4() {
		return value4;
	}

	public void setValue4(String value4) {
		this.value4 = value4;
	}

	public String getValue5() {
		return value5;
	}

	public void setValue5(String value5) {
		this.value5 = value5;
	}

	public String getValue6() {
		return value6;
	}

	public void setValue6(String value6) {
		this.value6 = value6;
	}

	public String getValue7() {
		return value7;
	}

	public void setValue7(String value7) {
		this.value7 = value7;
	}

	public String getValue8() {
		return value8;
	}

	public void setValue8(String value8) {
		this.value8 = value8;
	}

	public String getValue9() {
		return value9;
	}

	public void setValue9(String value9) {
		this.value9 = value9;
	}

	public String getValue10() {
		return value10;
	}

	public void setValue10(String value10) {
		this.value10 = value10;
	}

	public String getIsSigned() {
		return isSigned;
	}

	public void setIsSigned(String isSigned) {
		this.isSigned = isSigned;
	}

	public String getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(String isChecked) {
		this.isChecked = isChecked;
	}

	public String getIsHeld() {
		return isHeld;
	}

	public void setIsHeld(String isHeld) {
		this.isHeld = isHeld;
	}

	public String getSignDepartment() {
		return signDepartment;
	}

	public void setSignDepartment(String signDepartment) {
		this.signDepartment = signDepartment;
	}

	public String getIsNews() {
		return isNews;
	}

	public void setIsNews(String isNews) {
		this.isNews = isNews;
	}

	public String getFalseCreateTime() {
		return falseCreateTime;
	}

	public void setFalseCreateTime(String falseCreateTime) {
		this.falseCreateTime = falseCreateTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

//	public ConfValue getCv() {
//		return cv;
//	}
//
//	public void setCv(ConfValue cv) {
//		this.cv = cv;
//	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getGoodtimes() {
		return goodtimes;
	}

	public void setGoodtimes(Integer goodtimes) {
		this.goodtimes = goodtimes;
	}

	public Integer getReadTimes() {
		return readTimes;
	}

	public void setReadTimes(Integer readTimes) {
		this.readTimes = readTimes;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getOriginAddress() {
		return originAddress;
	}

	public void setOriginAddress(String originAddress) {
		this.originAddress = originAddress;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

//	public Long getColumnId() {
//		return columnId;
//	}
//
//	public void setColumnId(Long columnId) {
//		this.columnId = columnId;
//	}

	public String getSignStatus() {
		return signStatus;
	}

	public void setSignStatus(String signStatus) {
		this.signStatus = signStatus;
	}

	public String getTeams() {
		return teams;
	}

	public void setTeams(String teams) {
		this.teams = teams;
	}

	public String[] getAssociations() {
		return associations;
	}

	public void setAssociations(String[] associations) {
		this.associations = associations;
	}

	public String[] getAssocGrops() {
		return assocGrops;
	}

	public void setAssocGrops(String[] assocGrops) {
		this.assocGrops = assocGrops;
	}

	public String getDepars() {
		return depars;
	}

	public void setDepars(String depars) {
		this.depars = depars;
	}

	public String getTransforms() {
		return transforms;
	}

	public void setTransforms(String transforms) {
		this.transforms = transforms;
	}

	public String getFileTypes() {
		return fileTypes;
	}

	public void setFileTypes(String fileTypes) {
		this.fileTypes = fileTypes;
	}

	public String getIssuings() {
		return issuings;
	}

	public void setIssuings(String issuings) {
		this.issuings = issuings;
	}

	public String getiYears() {
		return iYears;
	}

	public void setiYears(String iYears) {
		this.iYears = iYears;
	}

	public String getiNumbers() {
		return iNumbers;
	}

	public void setiNumbers(String iNumbers) {
		this.iNumbers = iNumbers;
	}

	public String getiSigner() {
		return iSigner;
	}

	public void setiSigner(String iSigner) {
		this.iSigner = iSigner;
	}

	public String getiAngency() {
		return iAngency;
	}

	public void setiAngency(String iAngency) {
		this.iAngency = iAngency;
	}

	public String getiSignTime() {
		return iSignTime;
	}

	public void setiSignTime(String iSignTime) {
		this.iSignTime = iSignTime;
	}

	public String getiSignedTime() {
		return iSignedTime;
	}

	public void setiSignedTime(String iSignedTime) {
		this.iSignedTime = iSignedTime;
	}

	public String getIsURL() {
		return isURL;
	}

	public void setIsURL(String isURL) {
		this.isURL = isURL;
	}

	public String getTopTime() {
		return topTime;
	}

	public void setTopTime(String topTime) {
		this.topTime = topTime;
	}

	public String getIsSignNews() {
		return isSignNews;
	}

	public void setIsSignNews(String isSignNews) {
		this.isSignNews = isSignNews;
	}

}
